<?php
include ('../function/lihatdepartemen.php');
include ('../function/lihatgh.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <!-- Title and other stuffs -->
  <title>SDM - Insert</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="author" content="">


  <!-- Stylesheets -->
  <link href="../../style/bootstrap.css" rel="stylesheet">
  <!-- Font awesome icon -->
  <link rel="stylesheet" href="../../style/font-awesome.css"> 
  <!-- jQuery UI -->
  <link rel="stylesheet" href="../../style/jquery-ui.css"> 
  <!-- Calendar -->
  <link rel="stylesheet" href="../../style/fullcalendar.css">
  <!-- prettyPhoto -->
  <link rel="stylesheet" href="../../style/prettyPhoto.css">   
  <!-- Star rating -->
  <link rel="stylesheet" href="../../style/rateit.css">
  <!-- Date picker -->
  <link rel="stylesheet" href="../../style/bootstrap-datetimepicker.min.css">
  <!-- jQuery Gritter -->
  <link rel="stylesheet" href="../../style/jquery.gritter.css">
  <!-- CLEditor -->
  <link rel="stylesheet" href="../../style/jquery.cleditor.css"> 
  <!-- Bootstrap toggle -->
  <link rel="stylesheet" href="../../style/bootstrap-toggle-buttons.css">
  <!-- Main stylesheet -->
  <link href="../../style/style.css" rel="stylesheet">
  <!-- Widgets stylesheet -->
  <link href="../../style/widgets.css" rel="stylesheet">   
  <!-- Responsive style (from Bootstrap) -->
  <link href="../../style/bootstrap-responsive.css" rel="stylesheet">
  
  <!-- HTML5 Support for IE -->
  <!--[if lt IE 9]>
  <script src="js/html5shim.js"></script>
  <![endif]-->

  <!-- Favicon -->
  <link rel="shortcut icon" href="Bank_Mandiri.jpg">
</head>

<body>

<?php
include ("aheader.php");
?>

<!-- Main content starts -->

<div class="content">

  	<!-- Sidebar -->
    <div class="sidebar">
        <div class="sidebar-dropdown"><a href="#">Navigation</a></div>

        <div class="sidebar-inner">


          <!--- Sidebar navigation -->
          <!-- If the main navigation has sub navigation, then add the class "has_submenu" to "li" of main navigation. -->
          <ul class="navi">

            <!-- Use the class nred, ngreen, nblue, nlightblue, nviolet or norange to add background color. You need to use this in <li> tag. -->

            <li class="norange"><a href="index.php"><i class="icon-home"></i> Home</a></li>

			<li class="norange"><a href="tambahdepartemen.php"><i class="icon-plus"></i> Tambah Departemen</a></li>
            
            <li class="norange"><a href="tambahteam.php"><i class="icon-plus"></i> Tambah Team</a></li>
			
			<li class="has_submenu norange current open">
			<a href="index.php">
			<i class="icon-user"></i> Tambah User
			 <span class="pull-right"><i class="icon-angle-right"></i></span>
			</a>
			<ul>
			
			 <li class="norange"><a href="tambahgh.php"><i class="icon-plus"></i> Tambah Group Head</a></li>
			
            <li class="active"><a href="tambahkepalapegawai.php"><i class="icon-plus"></i> Tambah Departemen Head</a></li>
            
            <li class="norange"><a href="tambahpegawai.php"><i class="icon-plus"></i> Tambah Pegawai</a></li>
            </ul>
			</li>
           
		   <li class="norange"><a href="tambahtraining.php"><i class="icon-plus"></i> Tambah Training</a></li>

          </ul>

          <!-- Search form -->
          <div class="sidebar-widget">
            <?php
			include ("search.php");
			?>
          </div>






        </div>

    </div>

    <!-- Sidebar ends -->

  	<!-- Main bar -->
  	<div class="mainbar">
      
	    <!-- Page heading -->
	    <div class="page-head">
        <!-- Page heading -->
	      <h2 class="pull-left">Insert
          <!-- page meta -->
          <span class="page-meta">Isikan semua kolom untuk menambahkan kepala departemen, lalu tekan tombol "Insert".</span>
        </h2>


        <!-- Breadcrumb -->
        <div class="bread-crumb pull-right">
          <a href="#"><i class="icon-pencil"></i> Insert</a>
        </div>

        <div class="clearfix"></div>

	    </div>
	    <!-- Page heading ends -->



	    <!-- Matter -->

	    <div class="matter">
        <div class="container-fluid">

<form method="post" action="../function/tambahkepalapegawai.php">
<table border="0">
<tr>
	<td>NIP</td><td><input type="text" name="nip"></td>
</tr>
<tr>
	<td>Nama</td><td><input type="text" name="nama"></td>
</tr>
<tr>
	<td>Password</td><td><input type="password" name="password"></td>
</tr>
<tr>
	<td>Atasan</td>
	<td>
	<select id="atasan" name="atasan">
	<?php
		while($row4 = mysql_fetch_array($result4)){
		?>
			 <option value=" <?php echo $row4['NIP']; ?> " onClick=""> <?php echo $row4['NAMA']; ?> </option>
		
		<?php } ?>
	</select>
	</td>
</tr>
<tr>
	<td>Departemen</td>
	<td>
		<select id="departemen" name="departemen">
		<?php
		while($row = mysql_fetch_array($query)){
		?>
			 <option value=" <?php echo $row['ID_DEPARTEMEN']; ?> " onClick=""> <?php echo $row['NAMA_DEPARTEMEN']; ?> </option>
		
		<?php } ?>
        </select>
	</td>
</tr>

</table>


<input type="submit" id="button" name="button" value="Insert">
</form>



<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span> 

<!-- JS -->
<script src="../../js/jquery.js"></script> <!-- jQuery -->
<script src="../../js/bootstrap.js"></script> <!-- Bootstrap -->
<script src="../../js/jquery-ui-1.10.2.custom.min.js"></script> <!-- jQuery UI -->
<script src="../../js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
<script src="../../js/jquery.rateit.min.js"></script> <!-- RateIt - Star rating -->
<script src="../../js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->

<!-- jQuery Flot -->
<script src="../../js/excanvas.min.js"></script>
<script src="../../js/jquery.flot.js"></script>
<script src="../../js/jquery.flot.resize.js"></script>
<script src="../../js/jquery.flot.pie.js"></script>
<script src="../../js/jquery.flot.stack.js"></script>

<script src="../../js/jquery.gritter.min.js"></script> <!-- jQuery Gritter -->
<script src="../../js/sparklines.js"></script> <!-- Sparklines -->
<script src="../../js/jquery.cleditor.min.js"></script> <!-- CLEditor -->
<script src="../../js/bootstrap-datetimepicker.min.js"></script> <!-- Date picker -->
<script src="../../js/jquery.toggle.buttons.js"></script> <!-- Bootstrap Toggle -->
<script src="../../js/filter.js"></script> <!-- Filter for support page -->
<script src="../../js/custom.js"></script> <!-- Custom codes -->
<script src="../../js/charts.js"></script> <!-- Custom chart codes -->

</body>
</html>